<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */
if(!User::isLogged()){
echo '
        <h2>Přihlášení</h2>
        <form id="loginForm" method="post" action="{url}index.php?q=user/login">
          <div id="login"><ul>
            <li><span class="username"><input type="text" id="username" name="username" value="'.USERNAME.'" onfocus="this.value = \'\'; this.onfocus = undefined;" size="18" /></span></li>
            <li><span class="password"><input type="password" id="password" name="password" value="'.PASSWORD.'" onfocus="this.value = \'\'; this.onfocus = undefined;" size="18" /></span></li>
            <li><input type="submit" value="'.SUBMIT.'" /></li>
            
            <li><a href="{url}index.php?q=user/register">Registrace</a></li>
           </ul>
          </div>
        </form>
        
';
}
else{
	echo '<h2>Uživatel</h2><ul>
	    <div id="user">
		<li><p class="welcome" >Vítejte <strong>'.User::getDisplayName().'</strong> !</p></li>
		<li><a href="{url}index.php?q=user/edit">Upravit Profil</a></li>
		<li><a href="{url}index.php?q=user/logout">Odhlásit</a></li>
		</div>
		</ul>';
	
	}
?>